package pl.myapp.webtest.events.listener;

import org.slf4j.Logger;
import pl.myapp.webtest.config.qualifier.MyLogger;
import pl.myapp.webtest.events.qualifier.BlackCoffee;
import pl.myapp.webtest.events.stuff.CupOfCoffee;

import javax.enterprise.event.Observes;
import javax.inject.Inject;

/**
 * Created by IntelliJ IDEA.
 * User: kaafaar
 * Date: 16.05.11
 * Time: 22:47
 * To change this template use File | Settings | File Templates.
 */
public class CoffeeBlackListener {
    @Inject
	@MyLogger
    Logger logger;

    public void blackCoffee(@Observes @BlackCoffee CupOfCoffee cupOfCoffee) {
        logger.info("O N L Y  B L A C K  C O F F E E ! ! ! ! ! "+cupOfCoffee.toString());
    }
}
